home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
BOX.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
6KB
|
134 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_Box( nFRow, nFCol, nTRow, nTCol, nBox_Type, nLabel, cLabel_Txt) --> NIL
PARAMETERS:
nFRow : Screen Coordinates of Box
nFCol : ""
nTRow : ""
nTCol : ""
nBox_Type : Numeric 1, 2, 3, 4 (See KLIPPER.CH for #defines)
nLabel : Numeric 1, 4, 5 (See KLIPPER.CH for #defines)
cLabel_Txt : Box Label Text
SHORT:
Draw a box with a "shadow."
DESCRIPTION:
_Box() draws a box, with shadow. Optionally, you may specify which type of
box border you want, and several types of border labels.
The _Box() function calls _PopBox() to provide the "exploding" effect, and
passes the nBox_Type parameter.
nBox_Type (BOX TYPES):
(Default)
1 2 3 4 5 6
┌────┐ ╓─────╖ ╒═════╕ ╔══════╗ █▀▀▀▀▀▀▀▀█ NO BORDER
│ │ ║ ║ │ │ ║ ║ ▌ ▐
│ │ ║ ║ │ │ ║ ║ ▌ ▐
└────┘ ╙─────╜ ╘═════╛ ╚══════╝ █▄▄▄▄▄▄▄▄█
NOTE:
The shadow created by _Box() can be one of two choices. The shadow can be
one character wide or two characters wide. Two characters wide makes the
shadow area larger and gives the impression that the box is "higher" off the
desktop area. This option is not passed as a parameter but is controlled by
a variable called KBOXHIGH. To force the Box() "high", create a PUBLIC or
PRIVATE at the top of your program, or anywhere else so long as it is in
scope when the _Box() function is called, and assign it a TRUE value:
PUBLIC KBOXHIGH := .T.
This causes the _Box() shadow to be two characters wide giving the appearance
of height. If this variable is not declared, or is not in scope at the time
the _Box() function is called, then the default shadow width is one character
or "low".
EXAMPLE:
_Box(5,10,15,70,THICK,LABEL_ARROWS_RIGHT,'This is a label')
Other Label Types (In the following, the ^ and v characters are replaced by
chr(25) and chr(24) on the screen. Here they are ^ and v only to satisfy a
word processor's obsessive/compulsive habit of stripping those characters
out). All boxes are of type 4 (BOXDOUBLE):
Example 1 ╔══════════════════════════════════════════════════╗
Box Type 4 ║ ║
NO LABEL TYPE ║ ║
║ Label Type NOT SPECIFIED (DEFAULT) ║
║ ║
║ NO HELP KEY on Bottom AND NO Arrows ║
║ ║
║ ║
╚══════════════════════════════════════════════════╝
Example 2 ╔══════════════════════════════════════════════════╗
Box Type 4 ║ ║
Label Type 1 ║ ║
║ Label Type 1 ║
║ ║
║ Key Help on Bottom no Arrows ║
║ ║
║ ║
╚═╣ ^v Move, ╛ Select ╠═══════════════════════════╝
Example 3 ╔══════════════════════════════════════════════════╗
Box Type 4 ║ ^
Label Type 4 ║ ║
║ Label Type 4 ║
║ ║
║ Key Help on Bottom AND arrows on RIGHT ║
║ ║
║ v
╚═╣ ^v Move, ╛ Select ╠═══════════════════════════╝
Example 4 ╔══════════════════════════════════════════════════╗
Box Type 4 ^ ║
Label Type 5 ║ ║
║ Label Type 4 ║
║ ║
║ Key Help on Bottom AND arrows on LEFT ║
║ ║
v ║
╚═╣ ^v Move, <╛ Select ╠═══════════════════════════╝
Example using all defaults:
_Box(10,10,12,40,4,5)
Result: A box appears on the screen at coordinates: 10,10,12,40 that
looks similar to Example 4 above, with
shadow.
Example using all parameters:
_Box(5,10,15,70,THICK,LABEL_ARROWS_RIGHT,'This is a label')
Result: A shadow box, at the given coordinates, with a thick (Type 5) border,
with up and down arrows on the RIGHT side and the label "This is a label"
on the bottom, is drawn.
******************************************************************************/